<?php
namespace app\index\controller;


class Article extends Common
{
    public function index($artid)
    {
        db('article')->where('id',$artid)->setInC('click');
        $article = db('article')->find($artid);
        $hotRes = (new \app\index\model\Article())->getHotRes($article['cateid']);
        $this->assign('article',$article);
        $this->assign('hotRes',$hotRes);
        return view('article');
    }


}
